#include "Car.h"

Car::Car()
{
	brand="";
	year=0;
	price=0;
}

Car::Car(string b, int y, double p)
{
	brand=b;
	year=y;
	price=p;
}

	
void Car::ReadFromConsole()
{
	cout<< "Bilens namn: ";
	cin >> brand;
	cout << "Bilens armodell: ";
	cin >> year;
	cout<< "Bilens pris: ";				
	cin >> price;
}

void Car::WriteToConsole()
{
	cout << setw(20) << brand << setw(8) << year << setw(12) << price << "\n";
}
